package com.example.studentregistration.mapper;

import com.example.studentregistration.pojo.DormBuilding;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DormBuildingMapper {
    int insert(DormBuilding entity);
    int update(DormBuilding entity);
    int delete(Integer id);
    DormBuilding findById(Integer id);
    DormBuilding findByBuildingNo(String buildingNo);
    List<DormBuilding> findAll();
    int batchDelete(@Param("ids") List<Integer> ids);
}